package com.ruoyi.fileMaintenance.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 学习资料词性对象 t_chinese_meaning
 *
 * @author ruoyi
 * @date 2024-03-27
 */
public class TChineseMeaning extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("资料id")
    private Long learningMaterialsId;

    @ApiModelProperty("词性")
    private String partOfSpeech;

    @ApiModelProperty("中文意思")
    private String meaningInChinese;

    /** 主键 */
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    /** 学习资料，引用t_learning_materials.id */
    public Long getLearningMaterialsId() {
        return learningMaterialsId;
    }

    public void setLearningMaterialsId(Long learningMaterialsId) {
        this.learningMaterialsId = learningMaterialsId;
    }

    public String getPartOfSpeech() {
        return partOfSpeech;
    }

    public void setPartOfSpeech(String partOfSpeech) {
        this.partOfSpeech = partOfSpeech;
    }

    public String getMeaningInChinese() {
        return meaningInChinese;
    }

    public void setMeaningInChinese(String meaningInChinese) {
        this.meaningInChinese = meaningInChinese;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("learningMaterialsId", getLearningMaterialsId())
                .append("partOfSpeech", getPartOfSpeech())
                .append("meaningInChinese", getMeaningInChinese())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .toString();
    }
}